run afoul

verbs

go against, as of rules and laws
"He ran afoul of the law"; "This behavior conflicts with our rules"